import {
  BaseEntity,
  Column,
  CreateDateColumn,
  DeleteDateColumn,
  Entity,
  PrimaryGeneratedColumn,
  UpdateDateColumn,
} from 'typeorm';

@Entity()
export class Storeaddress extends BaseEntity {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({
    comment: '名称',
    nullable: true,
    unique: false,
    default: null,
    type: 'varchar',
  })
  name: string;

  @Column({
    comment: '地址',
    nullable: true,
    unique: false,
    default: null,
    type: 'varchar',
  })
  address: string;

  @Column({
    comment: '营业执照',
    nullable: true,
    unique: false,
    default: null,
    type: 'varchar',
  })
  license: string;

  @Column({
    comment: '身份证照片',
    nullable: true,
    unique: false,
    default: null,
    type: 'varchar',
  })
  idcard: string;

  @Column({
    comment: '营业时间',
    nullable: true,
    unique: false,
    default: null,
    type: 'varchar',
  })
  businessHours: string;

  @Column({
    comment: '营业类型',
    nullable: true,
    unique: false,
    default: null,
    type: 'varchar',
  })
  businessType: string;

  @Column({
    comment: '营业电话',
    nullable: true,
    unique: false,
    default: null,
    type: 'varchar',
  })
  businessPhone: string;

  @Column({
    comment: '门头照',
    nullable: true,
    unique: false,
    default: null,
    type: 'varchar',
  })
  doorwayPhoto: string;

  @Column({
    comment: '联系电话',
    nullable: true,
    unique: false,
    default: null,
    type: 'varchar',
  })
  phone: string;

  @CreateDateColumn()
  createTime: Date;

  @UpdateDateColumn()
  updateTime: Date;

  @DeleteDateColumn({ nullable: true })
  deleteTime: Date;
}
